package com.example.download2;

import java.util.Random;

import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;

public class NotyManager 
{
	Context context;
	NotificationManager nm;
	public NotyManager(Context context) {
		this.context=context;
		nm=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
	}
	
	public void noty(int id,Notification notify)
	{
		
		nm.notify(id, notify);
	}
	
	public void clear(int id)
	{
		//nm.cancel(id);
		nm.cancelAll();
	}
}
